
#include "main.h"
#include "stm32f0xx_it.h"
#include "usart.h"
#include "tim.h"
extern uint32_t timer_cnt;
extern uint8_t Alarm_Status;
extern uint8_t reboot_Status;
extern TIM_HandleTypeDef htim3;
extern TIM_HandleTypeDef htim6;
extern UART_HandleTypeDef huart1;
void NMI_Handler(void)
{
}
void HardFault_Handler(void)
{
  while (1)
  {
  }
}
void SVC_Handler(void)
{
}
void PendSV_Handler(void)
{
}
void SysTick_Handler(void)
{
  HAL_IncTick();
}
void EXTI4_15_IRQHandler(void)
{
  HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
}
void TIM3_IRQHandler(void)
{
  HAL_TIM_IRQHandler(&htim3);
}
void TIM6_IRQHandler(void)
{
  HAL_TIM_IRQHandler(&htim6);
	timer_cnt++;
	if(Alarm_Status==1)
		{
			if(timer_cnt%2==0)
			{
				Time3_ch1_on();
				LED1_ON;
			}
			else
			{
				Time3_ch1_off();
				LED1_OFF;
			}
		}
		if(reboot_Status==1)
		{
			if(timer_cnt%2==0)
				LED0_ON;
			else
				LED0_OFF;
		}
}
void USART1_IRQHandler(void)
{
  HAL_UART_IRQHandler(&huart1);
}